<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <nav>11</nav>
  </body>
  <script>
    let nav = document.querySelector("nav");
    nav.innerHTML = "<a href='https://www.baidu.com'>baidu</a>";
    // let a = document.createElement("a");
    // a.innerHTML = "coderqian";
    // a.setAttribute("accesskey", "4");
    // a.setAttribute("href", "https://www.baidu.com");
    // nav.appendChild(a);
    // console.log(a.innerText);
  </script>
</html>
